<@Macros.Html flag = 'begin'/>
    <@Macros.Head flag = "begin"/>
		<@Macros.Title title = "Spring MVC Sample"/>
		<@Macros.LoadZUI name = "date"/>
		<@Macros.LoadZUI name = "colorbox"/>
		<@Macros.LoadJS path = "js/demo/demo.js"/>
	<@Macros.Head flag = "end"/>
	<body>
		<#--<input type="hidden" name="APP_ROOT_PATH" id="APP_ROOT_PATH" value="${env.getWebURL('')}"/>-->
		<@Macros.Hidden name="APP_ROOT_PATH" value = ""/>
		${vo.sampleName}<p>
		<table style="border: 1px solid #A8C2DD;">
			<tr>
				<th style="border: 1px solid #A8C2DD;"><input type="checkbox" value="0"/></th>
				<th>名称</th>
				<th>时间</th>
			</tr>
			<#list samples as sampleList>
				<tr>
					<td style="border: 1px solid #A8C2DD;"><input type="checkbox" value="${sampleList.id}"/></td>
					<td><a href="javascript:void(0);" onclick="DemoApp.memcachedTest(${sampleList.id});">${sampleList.sampleName}</a></td>
					<td><input type="text" id="dateId_${sampleList.id}" onfocus="DemoApp.dateDemo(${sampleList.id})" value="${sampleList.gmtCreate?string("yyyy-MM-dd")}"/></td>
					<td><button id="edit_${sampleList.id}" name="edit" onclick="DemoApp.editSample(${sampleList.id})">编辑</button></td>
					<td><button id="edit_${sampleList.id}" name="edit" onclick="DemoApp.deleteSample(${sampleList.id})">删除</button></td>
				</tr>
			</#list>
		</table>
		<p>
		<input type="button" id="json" value="json test" onclick="DemoApp.testJson()"/><p>
		<input type="button" id="mybatise" value="mybatise test" onclick="DemoApp.mybatiseTest()"/><p>
	</body>
<@Macros.Html flag = "end"/>